package com.workManager.mapper;

import com.workManager.pojo.TbParameter;
import com.workManager.pojo.TbParameterExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TbParameterMapper {
    int countByExample(TbParameterExample example);

    int deleteByExample(TbParameterExample example);

    int deleteByPrimaryKey(Integer paramId);

    int insert(TbParameter record);

    int insertSelective(TbParameter record);

    List<TbParameter> selectByExample(TbParameterExample example);

    TbParameter selectByPrimaryKey(Integer paramId);

    int updateByExampleSelective(@Param("record") TbParameter record, @Param("example") TbParameterExample example);

    int updateByExample(@Param("record") TbParameter record, @Param("example") TbParameterExample example);

    int updateByPrimaryKeySelective(TbParameter record);

    int updateByPrimaryKey(TbParameter record);

    List<TbParameter> queryByParameterType(String parameterType);

    int deleteParameterByTypeId(String parameterTypeId);

    TbParameter getParamByTypeAndName(@Param("paramType")String paramType, @Param("paramName")String paramName);


    List<TbParameter> queryParameter(@Param("cm") Map map);
}